package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_inn_cook", desc = "客栈烹饪记录", autoSave = true, uploadCk = true)
public class LogInnCook extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "菜品id")
    private int dishesId;
    @FieldTypeAnnotation(desc = "菜系类型")
    private int dishesType;
    @FieldTypeAnnotation(desc = "是否热门菜系")
    private int isHot;  //0不是 1是
    @FieldTypeAnnotation(desc = "制作数量")
    private int cookNum;
    @FieldTypeAnnotation(desc = "消耗")
    private String consume;
    @FieldTypeAnnotation(desc = "营业时长秒")
    private long cookSecond;
    @FieldTypeAnnotation(desc = "开始时间")
    private long cookStartTime;


    public LogInnCook(long userId, int patronsId, int dishesId, int dishesType, int isHot, int cookNum, String consume, long cookSecond, long cookStartTime) {
        this.userId = userId;
        this.patronsId = patronsId;
        this.dishesId = dishesId;
        this.dishesType = dishesType;
        this.isHot = isHot;
        this.cookNum = cookNum;
        this.consume = consume;
        this.cookSecond = cookSecond;
        this.cookStartTime = cookStartTime;
    }

    public long getUserId() {
        return userId;
    }

}
